package org.lanqiao.oa.composite;

import org.lanqiao.oa.dto.PermissionDTO;
import org.lanqiao.oa.visitor.PermissionVisitor;
import org.lanqiao.oa.visitor.impl.AbstractVisitorClass;

import java.io.IOException;

public class PermissionNode extends PermissionDTO {

    /**
     * 访问者访问方法
     * @param permissionVisitor
     */
    public void accept(AbstractVisitorClass permissionVisitor){
        try {
            permissionVisitor.templeMethod(this);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
